//
//  MFShareManager.h
//  MFZSDK
//
//  Created by cp01 on 2021/5/21.
//  Copyright © 2021 zhangJH. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^MFShareCallBack)(id result);

@interface MFShareManager : NSObject

+ (instancetype)defaultManage;


/// 系统原生分享
/// - Parameters:
///   - items: 内容
///   - vc: vc
///   - results: 分享结果：YES：分享完成；NO：分享失败
- (void)nativeShareWithItems:(NSArray *)items viewController:(UIViewController *)vc result:(void(^)(BOOL completed))results;

/**line分享:文字或链接
 urlStr:分享的文字或链接
 result：分享结果：YES：分享成功；NO：分享失败
 */
- (void)lineShareWithUrlString:(NSString *)urlStr result:(void(^)(BOOL result))results;

/**line分享:图片
 image:分享的图片
 result：分享结果：YES：分享成功；NO：分享失败
 */
- (void)lineShareWithImage:(UIImage *)image result:(void(^)(BOOL result))results;



/**Facebook分享:链接
 urlString:分享的链接
 result：分享结果：result[@"code"] 为@"0"：分享成功；为@"1"：分享失败
 */
- (void)fbShareWithUrl:(NSString *)urlString result:(MFShareCallBack)results;

/**Facebook分享:图片
 image:分享的图片
 result：分享结果：result[@"code"] 为@"0"：分享成功；为@"1"：分享失败
 */
- (void)fbShareWithImage:(UIImage *)image result:(MFShareCallBack)results;

@end

NS_ASSUME_NONNULL_END
